package chixing.day19.work;

public class FestivalDiscount implements DiscountStrategy{
    public double applyDiscount(double originalPrice, User user, Product product) {
        if (product.isAttend()) {
            return originalPrice * 0.9;
        }
        return originalPrice;
    }
}
